package com.zdb.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zdb.pojo.Article;
import com.zdb.pojo.dto.ArticleDto;
import com.zdb.pojo.dto.ArticleSearchDto;
import com.zdb.pojo.vo.ArticleVO;

import java.util.List;

public interface ArticlesService {
    ArticleVO getArticle(int id);

    Integer deleteArticle(int id);

    Integer addArticle(ArticleDto article);

    Integer updateArticle(ArticleDto article);

    IPage<ArticleVO> getArticles(ArticleSearchDto articleSearchDto);

    void viewArticleIncrement(Integer id);



    void likeArticleDecrement(Integer id);

    void likeArticleIncrement(Integer id);

    void likeArticleHandleder(Integer id);

    void collectingArticle(Integer id);
}

